@extends('layouts.template')

@section('title', '消息中心')

@section('header')
@endsection

@section('content')
    <div>
        @foreach ($listSystemMessage as $message)
            <div class="xiaoxi01 overflow_h">
                <h2><span>{{$message->created_at}}</span>{{$message->data['title']}}{{$message->unread() ? '(未读)' : ''}}</h2>
                <p>{{$message->data['message']}}</p>
                <a href="{{url("message/read/{$message->id}")}}" class="xa">点击查看</a>
            </div>
        @endforeach
    </div>
@endsection